using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
using System.IO;

public class AssetExportEx
{
    [MenuItem("Assets/PackTool/Prefab")]
    public static void PrefabExport()
    {
        if (Selection.activeGameObject)
            ResourcesExport.ExportPrefab(Selection.activeGameObject);
    }

    [MenuItem("Assets/PackTool/PrefabAll")]
    public static void PrefabAllExport()
    {
        if (Selection.activeGameObject)
        {
            ResourcesExport.Clear();
            ResourcesExport.Export(Selection.activeGameObject, ".ap", BuildAssetBundleOptions.CollectDependencies | BuildAssetBundleOptions.CompleteAssets | BuildAssetBundleOptions.DeterministicAssetBundle);
        }
    }
}
